/*
 * TableComponentConstants.java
 *
 * Created on May 27, 2007, 4:40 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package info.javatech.jmf.common.components;

/**
 *
 * @author afedotov
 */
public interface TableComponentConstants {
    String VALUE_PROPERTY_NAME = "value";
    
    String SORTORDER_PROPERTY_NAME = "sortOrder";
    String SORTCOLUMN_PROPERTY_NAME = "sortColumn";
    String SORTSOURCE_PROPERTY_NAME = "sortSource";
    String SORTSCOPE_PROPERTY_NAME = "sortScope";
    
    String CURRENTPAGE_PROPERTY_NAME = "currentPage";
    String PAGESIZE_PROPERTY_NAME = "pageSize";
    String PAGINATIONSOURCE_PROPERTY_NAME = "paginationSource";
    
    String SELECTIONMODE_PROPERTY_NAME = "selectionMode";
    String SELECTION_PROPERTY_NAME = "selection";
    
    int SORT_ORDER_ASC = 0;
    int SORT_ORDER_DESC = 1;
    
    int SORT_SOURCE_SERVER = 0;
    int SORT_SOURCE_CLIENT = 1;
    
    int SORT_SCOPE_ONE = 0;
    int SORT_SCOPE_ALL = 1;
    
    int PAGINATION_SCOPE_SERVER = 0;
    int PAGINATION_SCOPE_CLIENT = 1;
    
    int SELECTION_MODE_CELL = 0;
    int SELECTION_MODE_SINGLE_ROW = 1;
    int SELECTION_MODE_MULTI_ROW = 2;
}
